package extends1;

class Item {
    void test() {
        System.out.println("item test");
    }
}

class CD extends Item {
    @Override
    protected void test() {
        System.out.println("cd test");
    }
}

public class OverrideDemo {
    public static void main(String[] args) {
        Item item = new CD();
        item.test();
    }
}
